package org.iweb.web.filter;

import org.iweb.init.RegisterFactory;

@SuppressWarnings({"rawtypes"})
public class FilterFactory {

	//private LayoutRegister register;
	private static FilterFactory instance;
	
	public Class getLayout(String name){
		return getRegister().getFilters().get(name);
	}
	
	protected FilterRegister getRegister(){
		//if(register==null)
		return (FilterRegister) RegisterFactory.getInstance().getRegisterByName("FilterRegister");		
	}

	public static FilterFactory getInstance() {
		if(instance==null)
			instance=new FilterFactory();
		return instance;
	}
	
}
